package cn.xd.itstack.springframework.context.event;

import cn.xd.itstack.springframework.context.ApplicationContext;
import cn.xd.itstack.springframework.context.ApplicationEvent;

/**
 * @Classname ApplicationContextEvent
 * @Description TODO
 * @Date 2022/5/28 下午3:08
 * @Created by lvxiaodong
 */
public class ApplicationContextEvent extends ApplicationEvent {
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }
}
